@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />

@endsection

@section('html-body')
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="{{route('Admin.Home.positionList')}}">职位管理</a>
            <em></em>
            <a href="#">投递的简历列表</a>
        </div>

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>姓名</th>
                    <th>头像</th>
                    <th>联系方式</th>
                    <th>个人学历</th>
                    <th>年龄</th>
                    <th>工作性质</th>
                    <th>期望职位</th>
                    <th>薪资类型</th>
                    <th>期望薪资</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(count($resumes) > 0)
                    @foreach($resumes as $resume)
                        <tr id="banner_{{$resume->id}}">
                            <td>{{$resume->id}}</td>
                            <td>@if($resume->user_info){{$resume->user_info->realname}} @endif</td>
                            <td class="account-td" style="width: 5%;">
                        <span class="photo" style="border-radius: 100%;display:initial">
                            @if($resume->user_info && $resume->user_info->photo_url !== null)
                                <a href="javascript:void(0);" class="openimg"><img src="{{$resume->user_info->photo_url}}" alt="{{$resume->user_info->photo_url}}"></a>
                            @else
                                <img src="{{url('images/default-avatar.png')}}" alt="">
                            @endif
                        </span>
                            </td>
                            <td>{{$resume->phone}}</td>
                            <td>{{$resume->education}}</td>
                            <td>{{$resume->age}}</td>
                            <td>{{$resume->work_nature}}</td>
                            <td>{{$resume->job_type}}</td>
                            <td>{{$resume->expected_salary_type}}</td>
                            <td>{{$resume->expected_salary}}</td>
                            <td><a href="{{route("Admin.Home.resumeListDetail")}}?resume_id={{$resume->id}}" target="_blank">查看详情</a> </td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
        </div>
        <div class="pagelist" style="text-align: center;">
            <?php echo $resumes->render(); ?>
        </div>
    </div>

@endsection